package KMLGenerator;

/**
 * This class represent an edge on the agreement map.
 * @author Andrea Piermarteri, Matteo Micheletti, Cervellini Diego
 *
 */
public class MapEdge {
	public String name;
	public String description;
	private MapVert p1;
	private MapVert p2;
	MEStyle style;
	
	/**
	 * Constructor of MapEdge without style.
	 * @param name
	 * @param description
	 * @param p1
	 * @param p2
	 */
	public MapEdge(String name, String description, MapVert p1, MapVert p2) {
		this.name = name;
		this.description = description;
		this.p1 = p1;
		this.p2 = p2;
		this.style = null;
	}

	/**
	 * Constructor of MapEdge.
	 * @param name
	 * @param description
	 * @param p1
	 * @param p2
	 * @param style
	 */
	public MapEdge(String name, String description, MapVert p1, MapVert p2,
			MEStyle style) {
		this.name = name;
		this.description = description;
		this.p1 = p1;
		this.p2 = p2;
		this.style = style;
	}
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public MapVert getP1() {
		return p1;
	}
	public void setP1(MapVert p1) {
		this.p1 = p1;
	}
	public MapVert getP2() {
		return p2;
	}
	public void setP2(MapVert p2) {
		this.p2 = p2;
	}
	public MEStyle getStyle() {
		return style;
	}
	public void setStyle(MEStyle style) {
		this.style = style;
	}
}
